<?php
header("content-type:text/html; charset=utf-8");
require("config.php");												//包含数据库连接文件
$id=$_GET['id'];
$sql="DELETE FROM depart WHERE d_id='$id'";
$result=mysql_query($sql);
if($result)
{
	echo '<script>alert("删除成功！");location.href="depart.php"</script>';
}
else
{
	echo '<script>alert("删除失败");location.href="depart.php"</script>';
}

?>